#include "RadianLayer.h"
#include "OgreTextureUnitState.h"

//--------------------------------------------------------------------------
RadianLayer::RadianLayer(const Ogre::String& layerName)
	:mLayerName(layerName)
	,mWidth(512.0f)
	,mHeight(512.0f)
	,mLayerTU(NULL)
	,mIndex(-1)
	,mScaleX(1)
	,mScaleY(1)
	,mScrollU(0)
	,mScrollV(0)
	,mTileX(1)
	,mTileY(1)
{
	InitLayerData();
}
//--------------------------------------------------------------------------
RadianLayer::~RadianLayer()
{
	delete mLayerController;
	mLayerController = NULL;
}
//--------------------------------------------------------------------------
void RadianLayer::InitLayerData()
{
	//mLayerController = new RadianLayerController();	
	
}
//--------------------------------------------------------------------------
void RadianLayer::SetWidth(float width)
{
	mWidth = width;
}
//--------------------------------------------------------------------------
void RadianLayer::SetHeight(float height)
{
	mHeight = height;
}
//--------------------------------------------------------------------------
void RadianLayer::SetIndex(int index)
{
	mIndex = index;
}
//--------------------------------------------------------------------------
void RadianLayer::SetScrollU(float scrollU)
{
	mScrollU = scrollU;
}
//--------------------------------------------------------------------------
void RadianLayer::SetScrollV(float scrollV)
{
	mScrollV = scrollV;
}
//--------------------------------------------------------------------------
void RadianLayer::SetTileX(float tileX)
{
	mTileX = tileX;
}
//--------------------------------------------------------------------------
void RadianLayer::SetTileY(float tileY)
{
	mTileY = tileY;
}
//--------------------------------------------------------------------------
void RadianLayer::SetTexture(const Ogre::String& textureName)
{
	mTextureName = textureName;
}
//--------------------------------------------------------------------------
void RadianLayer::SetVisible(bool visible)
{
	mVisible = visible;
}
//--------------------------------------------------------------------------